package joindemo.domain.query;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.*;

/**
 * 文章搜索查询参数。
 * @author pym
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
@Schema(description = "文章搜索请求参数")
public class ArticleSearchQuery extends PageQuery {

    @NotBlank(message = "搜索关键字不能为空")
    @Schema(description = "搜索关键字")
    private String keyword;
}